package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreActsPK implements Serializable {
    public Long actId;
    public Long actVersionNum;

    public RimCoreActsPK() {
    }

    public RimCoreActsPK(Long actId, Long actVersionNum) {
        this.actId = actId;
        this.actVersionNum = actVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreActsPK) {
            final RimCoreActsPK otherActsPK = (RimCoreActsPK) other;
            final boolean areEqual = (otherActsPK.actId.equals(actId) && otherActsPK.actVersionNum.equals(actVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
